package com.shiyipicture.shiyipicturebackend.service;

import cn.hutool.http.HttpRequest;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.shiyipicture.shiyipicturebackend.model.dto.space.SpaceAddRequest;
import com.shiyipicture.shiyipicturebackend.model.dto.spaceUser.SpaceUserAddRequest;
import com.shiyipicture.shiyipicturebackend.model.dto.spaceUser.SpaceUserQueryRequest;
import com.shiyipicture.shiyipicturebackend.model.entity.Space;
import com.shiyipicture.shiyipicturebackend.model.entity.SpaceUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shiyipicture.shiyipicturebackend.model.entity.User;
import com.shiyipicture.shiyipicturebackend.model.vo.SpaceUserVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author Administrator
* @description 针对表【space_user(空间用户关联)】的数据库操作Service
* @createDate 2025-02-20 15:08:21
*/
public interface SpaceUserService extends IService<SpaceUser> {

  void validSpaceUser(SpaceUser spaceUser, boolean add);

  long addSpaceUser(SpaceUserAddRequest spaceUserAddRequest, User loginUser);

  QueryWrapper<SpaceUser> getQueryWrapper(SpaceUserQueryRequest spaceUserQueryRequest);

  SpaceUserVO getSpaceUserVO(SpaceUser spaceUser, HttpServletRequest request);

  List<SpaceUserVO> getSpaceUserVOList(List<SpaceUser> spaceUserList);
}
